<html>
	<head>
		<title>
			Memory Profiler Test Case
		</title>
		<script>
			var count = (function() {
				var c = 0;
				var objects_in_closure = [];
				return function() {
					objects_in_closure.push({id:c++ + ''});
				}
			})();
			var objs = [];
			function addObject() {
				objs.push({id: objs.length + '', d: new Date()});
				count();
			}
		</script>
	</head>
	<body>
		<h1>Source</h2>
		<div>
			var arr = [];
			function addObject() {
				arr.push({id: objs.length + '', d: new Date()});
			}
		</div>
		<h1>Intro</h1>
		<p>first take a snapshot on memory use by clicking the button "Take a Snapshot" on "firedog" panel in firebug.</p>
		<p>add some new objects to the arr. by clicking "Add an Ojbect", a new object with a string id will be added to array "arr".</p>
		<p><input type="button" value="Add an Object" onclick="javascript:addObject();"/></p>
		<p>take another snapshot.</p>
		<p>check the checkbox before "Compare to", then click "Compare"</p>
		<p>all new objects will list in the left.</p>
		<p>view object details by clicking on their name, or see the referring objects by clicking the "plus" icon.</p>
	</body>
</html>
